package com.smoed.common.utilities.html;

import java.net.URL;
import java.util.ArrayList;

public final class PageData {
    private final String url;
    private final ArrayList<URL> links;
    private final String html;
    private final String contentType;
    private final String contentEncoding;
    private final long date;
    private final long lastModified;
    private final double retrievalSpeed;

    public PageData(String url, ArrayList<URL> links, String html, String contentType,
            String contentEncoding, long date, long lastModified, double retrievalSpeed) {
        this.url = url;
        this.links = links;
        this.html = html;
        this.contentType = contentType;
        this.contentEncoding = contentEncoding;
        this.date = date;
        this.lastModified = lastModified;
        this.retrievalSpeed = retrievalSpeed;
    }

    public String getUrl() {
        return url;
    }

    public ArrayList<URL> getLinks() {
        return links;
    }

    public String getHtml() {
        return html;
    }

    public String getContentType() {
        return contentType;
    }

    public String getContentEncoding() {
        return contentEncoding;
    }

    public long getDate() {
        return date;
    }

    public long getLastModified() {
        return lastModified;
    }

    public double getRetrievalSpeed() {
        return retrievalSpeed;
    }
}
